<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@include file="public.jsp"%>
	<div class="flight_list">
		<div class="flight_choosen">
			<div class="flight_choosen_info">
				<div class="flight_choosen_destination">${qc }</div>
				<div class="flight_choosen_name">${cityName }</div>
				<div class="flight_choosen_date">${rq }</div>
				<div class="flight_choosen_passengers">
					旅客人数： <span class="flight_choosen_passengers_adult" id="adult">${adult }</span>
				</div>
				
				<div class="clearboth"></div>
			</div>
			<ul class="flight_week">
				<c:forEach items="${kalendars}" var="item">
				<c:if test="${item.current eq 'current'}">
					<li class="choosed" >
				</c:if>
				<c:if test="${item.current eq 'disweek'}">
					<li  disabled="disabled" >
				</c:if>
				<c:if test="${item.current ne 'current' && item.current ne 'disweek'}">
					<li>
				</c:if>
				<a href="lcWeek1?w=${item.id}&cf=${cf}&dd=${dd}&year=${year}&month=${month}&day=${day}&year2=${year2}&month2=${month2}&day2=${day2}" title="点击ctrl加下按钮查看航班列表">
					<div class="flight_week_info">
						<span id="" class="flight_week_info_num">${item.week}</span> <span id="" class="flight_week_info_date"> ${item.date} </span>
					</div>
					<div class="flight_week_price">${item.price}</div>
				</a></li>
				</c:forEach>
				<div class="clearboth"></div>
			</ul>
		</div>
		
		<div class="flight_sel_result"  id="cflist">
			<span id="errorAlert" style="font-size: 18px; color: red;"><b>${noflight }${noflight1 }${errorAlert }</b></span>
			
			<c:forEach items="${lcExchangeFlights}" var="item" varStatus="status">
			
			<ul class="flight_sel_result_ul even navBlock">
			<a href="javascript:enterA(this);" onclick="enterA(this);" class="question" style="float: left;" title="航班号:${item.hbh}起飞时间:${item.qf_time}到达时间:${item.dd_time},继续按tab键继续了解航班信息" ><img src="${contextPath}/csair/img/question.png"></a>
				<li class="lcExchange_result_radio">
					<input class="lcRadio" type="radio" name="${item.data_href }"  data-href="${item.data_href }"  onkeyup="RadioKeyup(event,this)" >
				</li>
				<li class="flight_sel_result_dest">
					<div class="flight_sel_result_dest_start">
						<div class="flight_sel_result_dest_time">${item.qf_time}分</div>
						<div class="flight_sel_result_dest_city">${item.qf_city}</div>
					</div>
					<div class="flight_sel_result_dest_plane_info">
						<div class="flight_num">${item.hbh}</div>
						<div class="flight_type">${item.jx}</div>
					</div>
					<div class="flight_sel_result_dest_end">
						<c:choose>
							<c:when test="${fn:contains(item.dd_time, '+')}">
								<c:set var="ddTime" value="${fn:split(item.dd_time, '+')}" />
								<div class="flight_sel_result_dest_time">${ddTime[0]}分   +1</div>
							</c:when>
							<c:otherwise>
								<div class="flight_sel_result_dest_time">${item.dd_time}分</div>
							</c:otherwise>
						</c:choose>
						<div class="flight_sel_result_dest_city">${item.dd_city}</div>
					</div>
				</li>
			<!--  <a href="javascript:void(0);"  style="float: left; margin-top:30px;" title="详情" ><img src="${contextPath}/csair/img/question.png">详情</a>-->	
				<li class="flight_sel_result_price">
					<a href="javascript:void(0)" title="剩余座位数为${item.seat }" >剩余座位数:${item.seat }</a> 
					<a href="javascript:void(0)" id="${item.details_id}" class="details" title="详情" >详情</a> 
				</li>
				<div class="clearboth"></div>
			</ul>
			</c:forEach>
		</div>
	</div>
	
	<div class="flight_list" >
		<div class="flight_choosen">
			<div class="flight_choosen_info">
				<div class="flight_choosen_destination">${qc2 }</div>
				<div class="flight_choosen_name">${cityName2 }</div>
				<div class="flight_choosen_date">${rq2 }</div>
				<div class="flight_choosen_passengers">
					旅客人数： <span class="flight_choosen_passengers_adult" id="adult">${adult2 }</span>
				</div>
				
				<div class="clearboth"></div>
			</div>
			<ul class="flight_week">
				<c:forEach items="${kalendars2}" var="item">
				<c:if test="${item.current eq 'current'}">
					<li class="choosed" >
				</c:if>
				<c:if test="${item.current eq 'disweek'}">
					<li  disabled="disabled" >
				</c:if>
				<c:if test="${item.current ne 'current' && item.current ne 'disweek'}">
					<li>
				</c:if>
				<a href="lcWeek2?w=${item.id}&cf=${cf}&dd=${dd}&year=${year}&month=${month}&day=${day}&year2=${year2}&month2=${month2}&day2=${day2}" title="点击ctrl加下按钮查看航班列表">
						<div class="flight_week_info">
							<span id="" class="flight_week_info_num">${item.week}</span> <span id="" class="flight_week_info_date"> ${item.date} </span>
						</div>
						<div class="flight_week_price">${item.price}</div>
				</a></li>
				</c:forEach>
				<div class="clearboth"></div>
			</ul>
		</div>
	
		<div class="flight_sel_result" id="ddlist">
			<c:forEach items="${lcExchangeFlights2}" var="item" varStatus="status">
			
			<ul class="flight_sel_result_ul even navBlock">
			<a href="javascript:enterA(this);" onclick="enterA(this);" class="question" style="float: left;" title="航班号:${item.hbh}起飞时间:${item.qf_time}到达时间:${item.dd_time},继续按tab键继续了解航班信息" ><img src="${contextPath}/csair/img/question.png"></a>
				<li class="lcExchange_result_radio">
					<input class="lcRadio" type="radio" name="${item.data_href }"  data-href="${item.data_href }"  onkeyup="RadioKeyup(event,this)" >
				</li>
				<li class="flight_sel_result_dest">
					<div class="flight_sel_result_dest_start">
						<div class="flight_sel_result_dest_time">${item.qf_time}分</div>
						<div class="flight_sel_result_dest_city">${item.qf_city}</div>
					</div>
					<div class="flight_sel_result_dest_plane_info">
						<div class="flight_num">${item.hbh}</div>
						<div class="flight_type">${item.jx}</div>
					</div>
					<div class="flight_sel_result_dest_end">
						<c:choose>
							<c:when test="${fn:contains(item.dd_time, '+')}">
								<c:set var="ddTime" value="${fn:split(item.dd_time, '+')}" />
								<div class="flight_sel_result_dest_time">${ddTime[0]}分   +1</div>
							</c:when>
							<c:otherwise>
								<div class="flight_sel_result_dest_time">${item.dd_time}分</div>
							</c:otherwise>
						</c:choose>
						<div class="flight_sel_result_dest_city">${item.dd_city}</div>
					</div>
				</li>
			<!--  <a href="javascript:void(0);"  style="float: left; margin-top:30px;" title="详情" ><img src="${contextPath}/csair/img/question.png">详情</a>-->	
				<li class="flight_sel_result_price">
					<a href="javascript:void(0)" title="剩余座位数为${item.seat }" >剩余座位数:${item.seat }</a> 
					<a href="javascript:void(0)" id="${item.details_id}" class="details" title="详情" >详情</a> 
				</li>
				<div class="clearboth"></div>
			</ul>
			</c:forEach>
		</div>
	</div>
	
	
	<div class="lcExchangeTable2">
		<table cellpadding="0" cellspacing="0">
			<tr>
				<td style="border-right: #bfd5e6 solid 1px;">所需里程（不含税）</td>
				<td>${flightMileageCount }</td>
			</tr>
			<tr>
				<td style="width:30%;border-right: #bfd5e6 solid 1px;">退改签规则</td>
				<td style="width:70%;">${flightMileageCondi }</td>
			</tr>
		</table>
	</div>